var mySwiper = new Swiper ('.swiper', {
    direction: 'horizontal', // 垂直切换选项
    loop: true, // 循环模式选项
    effect: 'cube',//设置切换效果
    // 如果需要分页器
    pagination: {
      el: '.swiper-pagination',
    },
    
    // 如果需要前进后退按钮
    navigation: {
      nextEl: '.swiper-button-next',
      prevEl: '.swiper-button-prev',
    },
    // autoplay: {
    //     delay: 1500,
    //     stopOnLastSlide: false,
    //     disableOnInteraction: true,
    //     },
    // 如果需要滚动条
    // scrollbar: {
    //   el: '.swiper-scrollbar',
    // },
  })      

import { getImg
// 剩下的请求方法记得用逗号分隔
} from "./request.js"
let haha =document.querySelector(".haha")
let dd =document.querySelector(".dd")
let vx =document.querySelector(".vx")
let img1=document.querySelector(".img1")
let img2=document.querySelector(".img2")
let img3=document.querySelector(".img3")
getImg().then(res=>{
  console.log(res.data.rows[0].Carousels);
  let urls=res.data.rows[0].Carousels;
  // let ds=res.data.rows[1].Carousels;
  haha.src=urls[0].url,
  dd.src=urls[1].url
  vx.src=urls[2].url
  img1.src=urls[3].url
  img2.src=urls[4].url
  img3.src=urls[5].url
})
